<html>
<!-- =====================================================================

  File:      Generated file for Adventure Works Cycles Storefront Sample
  Summary:   Self-documentation for application
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) 2003 Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->
<head>
  <link rel=stylesheet href=style.css>
</head>
<body>
<div class=SourcePanel style="font-size:12">
<pre style="background-color:white">
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">%@</span> <span style="color: #2040a0">Control</span> <span style="color: #2040a0">Language=</span><span style="color: #444444">&quot;c#&quot;</span>  <span style="color: #2040a0">Inherits=</span><span style="color: #444444">&quot;Microsoft.Samples.SqlServer.MenuControl&quot;</span> <span style="color: #2040a0">CodeFile=</span><span style="color: #444444">&quot;_Menu.ascx.cs&quot;</span> <span style="color: #2040a0">%</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">%@</span> <span style="color: #2040a0">OutputCache</span> <span style="color: #2040a0">Duration=</span><span style="color: #444444">&quot;3600&quot;</span> <span style="color: #2040a0">VaryByParam=</span><span style="color: #444444">&quot;selection;expansion&quot;</span><span style="color: #2040a0">%</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">script</span> <span style="color: #2040a0">runat=</span><span style="color: #444444">&quot;server&quot;</span> <span style="color: #2040a0">language=</span><span style="color: #444444">&quot;c#&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>

<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/script</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>

<span style="color: #008000">&lt;!-- =====================================================================

  File:      _Menu.ascx for Adventure Works Cycles Storefront Sample
  Summary:   Master page user control which displays a tree of product categories and subcategories.  Provides the
			 the ability to quickly navigate the product catalog.
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= --&gt;</span>
<span style="color: #008000">&lt;!--

    This user control creates a menu of all product categories
    in the database.  This forms the left-hand navigation of the
    product catalog pages.

--&gt;</span>

<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">table</span> <span style="color: #2040a0">cellspacing=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">cellpadding=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;200&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">height=</span><span style="color: #444444">&quot;375&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span> <span style="color: #2040a0">valign=</span><span style="color: #444444">&quot;top&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">colspan=</span><span style="color: #444444">&quot;2&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;200&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;default.aspx&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">img</span> <span style="color: #2040a0">src=</span><span style="color: #444444">&quot;images/logo.jpg&quot;</span> <span style="color: #2040a0">border=</span><span style="color: #444444">&quot;0&quot;</span> <span style="color: #2040a0">height=</span><span style="color: #444444">&quot;46&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;144&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span> <span style="color: #2040a0">valign=</span><span style="color: #444444">&quot;top&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">colspan=</span><span style="color: #444444">&quot;2&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;200&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">asp:treeview</span> <span style="color: #2040a0">id=</span><span style="color: #444444">&quot;TreeView1&quot;</span> <span style="color: #2040a0">runat=</span><span style="color: #444444">&quot;server&quot;</span> <span style="color: #2040a0">font-underline=</span><span style="color: #444444">&quot;False&quot;</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;200&quot;</span> <span style="color: #2040a0">ExpandDepth=</span><span style="color: #444444">&quot;0&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">parentnodestyle</span> <span style="color: #2040a0">font-underline=</span><span style="color: #444444">&quot;False&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/parentnodestyle</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">rootnodestyle</span> <span style="color: #2040a0">font-underline=</span><span style="color: #444444">&quot;False&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/rootnodestyle</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span> 
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">nodestyle</span> <span style="color: #2040a0">font-underline=</span><span style="color: #444444">&quot;False&quot;</span> <span style="color: #2040a0">font-names=</span><span style="color: #444444">&quot;Verdana&quot;</span> <span style="color: #2040a0">font-size=</span><span style="color: #444444">&quot;12px&quot;</span> <span style="color: #2040a0">forecolor=</span><span style="color: #444444">&quot;Goldenrod&quot;</span> <span style="color: #2040a0">backcolor=</span><span style="color: #444444">&quot;Black&quot;</span> <span style="color: #2040a0">height=</span><span style="color: #444444">&quot;16px&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/nodestyle</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
                <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">leafnodestyle</span> <span style="color: #2040a0">font-underline=</span><span style="color: #444444">&quot;False&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/leafnodestyle</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
            <span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/asp:treeview</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
            <span style="color: #ff0000">&amp;nbsp;</span><span style="color: #ff0000">&amp;nbsp;</span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span> <span style="color: #2040a0">width=</span><span style="color: #444444">&quot;10&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #ff0000">&amp;nbsp;</span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
			<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">a</span> <span style="color: #2040a0">href=</span><span style="color: #444444">&quot;docs/docs.htm&quot;</span> <span style="color: #2040a0">target=</span><span style="color: #444444">&quot;_blank&quot;</span> <span style="color: #2040a0">class=</span><span style="color: #444444">&quot;SiteLink&quot;</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>Adventure 
				Works<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span> <span style="color: #2040a0">/</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span><span style="color: #ff0000">&amp;nbsp;</span>Cycles Store<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">br</span> <span style="color: #2040a0">/</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
				Documentation<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/a</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
		<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/td</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
	<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/tr</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>
<span style="color: #2040a0"><strong><span style="color: #4444FF"><strong>&lt;</strong></span><span style="color: #2040a0">/table</span><span style="color: #4444FF"><strong>&gt;</strong></span></strong></span>

</pre>
